import request from '@/utils/request'

// 查询薪酬组列表
export function listSalaryGroup(query) {
  return request({
    url: '/salary/salaryGroup/list',
    method: 'get',
    params: query
  })
}

// 查询薪酬组详细
export function getSalaryGroup(id) {
  return request({
    url: '/salary/salaryGroup/' + id,
    method: 'get'
  })
}

// 新增薪酬组
export function addSalaryGroup(data) {
  return request({
    url: '/salary/salaryGroup',
    method: 'post',
    data: data
  })
}

// 修改薪酬组
export function updateSalaryGroup(data) {
  return request({
    url: '/salary/salaryGroup',
    method: 'put',
    data: data
  })
}

// 删除薪酬组
export function delSalaryGroup(id) {
  return request({
    url: '/salary/salaryGroup/' + id,
    method: 'delete'
  })
}

// 查询薪酬组全部列表
export function listAllSalaryGroup(query) {
  return request({
    url: '/salary/salaryGroup/listAll',
    method: 'get',
    params: query
  })
}

// 查询薪酬组薪酬项目
export function getSalaryGroupProjectList(query) {
  return request({
    url: '/salary/salaryGroup/getSalaryGroupProjectList',
    method: 'get',
    params: query
  })
}

// 查询薪酬组算新周期
export function getSalaryGroupSalaryCycleList(query) {
  return request({
    url: '/salary/salaryGroup/getSalaryGroupSalaryCycleList',
    method: 'get',
    params: query
  })
}
